package com.story.api.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 播放记录
 * </p>
 *
 * @author yangbo
 * @since 2019-09-24
 */
@TableName("play_record")
public class PlayRecord extends Model<PlayRecord> {

    private static final long serialVersionUID = 1L;

	private Integer id;
	private Integer userId;
	private Integer resourceId;
	private Integer resType;
	private Date playTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getResourceId() {
		return resourceId;
	}

	public void setResourceId(Integer resourceId) {
		this.resourceId = resourceId;
	}

	public Integer getResType() {
		return resType;
	}

	public void setResType(Integer resType) {
		this.resType = resType;
	}

	public Date getPlayTime() {
		return playTime;
	}

	public void setPlayTime(Date playTime) {
		this.playTime = playTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PlayRecord{" +
			"id=" + id +
			", userId=" + userId +
			", resourceId=" + resourceId +
			", resType=" + resType +
			", playTime=" + playTime +
			"}";
	}
}
